<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html">

    <h:head>
        
        <h:outputScript library="js" name="../utilidades.js"/>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./../resources/css/default.css" rel="stylesheet" type="text/css" />        
        <title>Home</title>             

        <style type="text/css">
          body {
            padding-top: 60px;
            padding-bottom: 4px;
          }
          .loadClass{
              left:50%; position:absolute; top:50%; width:640px;
          }
        </style>   
    </h:head>
    <h:body>
        
        <ui:include src="templatePadrao.xhtml"/>
        
        <ui:composition>
            
          <h:form id="formMenu">
                    
                <div style="position:relative; top:1px; left: 0px; vertical-align:top; border: 0px">

                          <p:menubar style="width: 390px; border: 0px; top: 0px; height: 25px;">
                              <p:menuitem value="Home" outcome="home" action="home.xhtml" ajax="false"/>
                              <p:submenu label="Cadastros" rendered="#{loginController.usuCoord}">
                                  <p:menuitem value="Disciplinas" outcome="disciplina" action="manutencaoDisciplina.xhtml" ajax="false"/>
                                  <p:submenu label="Grade Horária" >
                                    <p:menuitem value="Administração" outcome="gradeHorariaAdministracao" action="administracaoGrade.xhtml" ajax="false"/>                                      
                                    <p:menuitem value="Consulta" outcome="gradeHoraria" action="manutencaoGrade.xhtml" ajax="false"/>                                    
                                  </p:submenu>
                                  <p:submenu label="Locais" >
                                    <p:menuitem value="Prédios" outcome="predio" action="manutencaoPredio.xhtml" ajax="false"/>
                                    <p:menuitem value="Salas" outcome="sala" action="manutencaoSala.xhtml" ajax="false"/>
                                  </p:submenu>
                                  <p:menuitem value="Professores" outcome="professores" action="manutencaoProfessor.xhtml" ajax="false"/>
                                  <p:menuitem value="Tipologia" outcome="tipologia" action="manutencaoTipologia.xhtml" ajax="false"/>
                                  <p:menuitem value="Turmas" outcome="turma" action="manutencaoTurma.xhtml" ajax="false"/>
                              </p:submenu>   
                              <p:submenu label="Cálculos" rendered="#{loginController.usuFin}">                                
                                <p:menuitem value="Folha de Pagamento" outcome="calculoFolha" action="calculoFolha.xhtml" ajax="false"/>
                              </p:submenu>   
                              <p:menuitem value="Configurações" outcome="configuracoes" rendered="#{loginController.usuNotAdm}" action="configuracoes.xhtml" ajax="false"/>
                              <p:submenu label="Administração" rendered="#{loginController.usuAdm}">
                                  <p:menuitem value="Usuários" outcome="usuarios" action="manutencaoUsuario.xhtml" ajax="false"/>
                                  <p:menuitem value="Unidades" outcome="unidades" action="manutencaoUnidade.xhtml" ajax="false"/>                            
                              </p:submenu>                                
                          </p:menubar>
                  </div>
                    
            </h:form>

            <div style="position:absolute; top:2px; right: 0px; vertical-align:central;">
                Seja Bem vindo(a),
                <h:outputText value="#{loginController.usuario.nome}" />                 
                <p:commandButton action="#{loginController.logout}" value="Sair" />                                                     

             </div>                            
        </ui:composition>
        
    </h:body>
</html>
